import request from '@/utils/request'

// 查询banner管理列表
export function listFocus(query) {
  return request({
    url: '/bus/focus/list',
    method: 'get',
    params: query
  })
}

// 查询banner管理详细
export function getFocus(bannerId) {
  return request({
    url: '/bus/focus/' + bannerId,
    method: 'get'
  })
}

// 新增banner管理
export function addFocus(data) {
  return request({
    url: '/bus/focus',
    method: 'post',
    data: data
  })
}

// 修改banner管理
export function updateFocus(data) {
  return request({
    url: '/bus/focus',
    method: 'put',
    data: data
  })
}

// 删除banner管理
export function delFocus(bannerId) {
  return request({
    url: '/bus/focus/' + bannerId,
    method: 'delete'
  })
}

// 导出banner管理
export function exportFocus(query) {
  return request({
    url: '/bus/focus/export',
    method: 'get',
    params: query
  })
}